package com.ujoin.bean;

import java.sql.Timestamp;

/**
 * UserMessage entity. @author MyEclipse Persistence Tools
 */

public class UserMessage implements java.io.Serializable {

	// Fields

	private Integer userMessId;
	private Integer receiverId;
	private Integer senderId;
	private String message;
	private Boolean isRead;
	private Boolean valid;
	private Timestamp created;

	// Constructors

	/** default constructor */
	public UserMessage() {
	}

	/** minimal constructor */
	public UserMessage(Integer receiverId, String message, Boolean valid,
			Timestamp created) {
		this.receiverId = receiverId;
		this.message = message;
		this.valid = valid;
		this.created = created;
	}

	/** full constructor */
	public UserMessage(Integer receiverId, Integer senderId, String message,
			Boolean isRead, Boolean valid, Timestamp created) {
		this.receiverId = receiverId;
		this.senderId = senderId;
		this.message = message;
		this.isRead = isRead;
		this.valid = valid;
		this.created = created;
	}

	// Property accessors

	public Integer getUserMessId() {
		return this.userMessId;
	}

	public void setUserMessId(Integer userMessId) {
		this.userMessId = userMessId;
	}

	public Integer getReceiverId() {
		return this.receiverId;
	}

	public void setReceiverId(Integer receiverId) {
		this.receiverId = receiverId;
	}

	public Integer getSenderId() {
		return this.senderId;
	}

	public void setSenderId(Integer senderId) {
		this.senderId = senderId;
	}

	public String getMessage() {
		return this.message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public Boolean getIsRead() {
		return this.isRead;
	}

	public void setIsRead(Boolean isRead) {
		this.isRead = isRead;
	}

	public Boolean getValid() {
		return this.valid;
	}

	public void setValid(Boolean valid) {
		this.valid = valid;
	}

	public Timestamp getCreated() {
		return this.created;
	}

	public void setCreated(Timestamp created) {
		this.created = created;
	}

}